import Main from '@/components/main';
// 基础设置
export const detectTask = [
  {
    path: '/detectTask',
    component: Main,
    name: 'DetectTask',
    meta: {
      title: '任务管理',
      icon: 'icon iconfont icondingshirenwu'
    },
    children: [
       {
        path: '/detect-task/taskManage',
        name: 'TaskManage',
        meta: {
          title: '任务跟踪',
          privilege: [
            {
              title: '查询任务',
              name: 'search-task'
            },
            {
              title: '新增任务',
              name: 'add-task'
            },
            {
              title: '编辑任务',
              name: 'update-task'
            },
            {
              title: '启动任务',
              name: 'start-task'
            },
            {
              title: '暂停任务',
              name: 'pause-task'
            },
            {
              title: '删除任务',
              name: 'delete-task'
            }
          ]
        },
        component: () =>
          import('@/views/system/detect-task/task-manage/task-manage.vue')
      },
      {
        path: '/detect-task/main-task',
        name: 'MainTaskManage',
        meta: {
          title: '任务日志',
          privilege: [
            {
              title: '查询',
              name: 'search-defect-task'
            },
            {
              title: '查看子任务',
              name: 'search-main-subTask'
            }
          ]
        },
        component: () => import('@/views/system/detect-task/main-task/main-task-manage.vue'),
      },{
        path: '/detect-task/sub-task',
        name: 'SubTaskManage',
        meta: {
          title: '子任务',
          privilege: [
            {
              title: '查询',
              name: 'search-sub-task'
            },
            {
              title: '子任务报表',
              name: 'search-subTask-report'
            },
            {
              title: '导出',
              name: 'export-subTask'
            },
            {
              title: '重置',
              name: 'reset-subTask'
            },
            {
              title: '撤销归档',
              name: 'cancel-subTask-archive'
            },
            {
              title: '修改描述',
              name: 'update-node-desc'
            }
          ]
        },
        component: () => import('@/views/system/detect-task/sub-task/sub-task.vue'),
      }
    ]
  }
];
